package com.gljx.web.dao;

import com.gljx.web.Entity.Inventory;
import com.gljx.web.Entity.InwareHouseEntry;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface InventoryMapper {

    int deleteByPrimaryKey(String kcId);

    int insert(Inventory record);

    int insertSelective(Inventory record);

    Inventory selectByPrimaryKey(String kcId);

    int updateByPrimaryKeySelective(Inventory record);

    int updateByPrimaryKey(Inventory record);

    /**
     * 通过公司id查询所有的Inventory
     * @param kcSchoolid
     * @return
     */
    List<Inventory> selectInventoresBySchoolid(String  kcSchoolid);
    /**
     * 批量增加
     * @param list
     * @return
     */
    int batchAddInventory(@Param("list")List<Inventory> list);

    /**
     * 批量删除
     * @param deleteId
     */
    void deleteByArray(String[] deleteId);

    /**
     * 批量查询
     * @param wpId
     * @return
     */

    List<Inventory> selectAllcheckInventory(String[] wpId);

   void  updateAllInventory(@Param("list")List<Inventory> list);

    /**
     * 批量修改new
     * @param list
     */
   void batchUpdate(@Param("list")List<Inventory> list);

}